<template>
  <div id="comment">
      <h1 class="header"><span @click="backAction">&lt;</span>服务评价</h1>
      <div class="top">
          <p>请对本次服务进行评价</p>
          <p>服务工单 ：XTD20154981001</p>
          <p>服务类型：上门安装</p>
      </div>

        <div class="bottom">
            <h1>回访备注</h1>
            <textarea name="" id="text">

            </textarea>
        </div>

        <button @click="clickAction">确定</button>
  </div>
</template>

<script>
export default {
    methods:{
        clickAction(){
            document.querySelector('#text').value='';
            alert('感谢您的评价!');
        },

        backAction(){
            this.$router.back()
        }
    }
}
</script>

<style scoped lang='scss'>
    #comment{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(241, 241, 241, 1);
    }


    .header{
        width: 100%;
        height: 50px;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        position: relative;
        line-height: 50px;
        color: white;
        background: rgba(144, 147, 153, 1);
        span{
            font-size: 20px;
            display: inline-block;
            position: absolute;
            top: 10px;
            left: 14px;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }
    }
    .top{
        width: 100%;
        height: 75px;
        padding: 10px 16px;
        box-sizing: border-box;
        background: white;
        margin: 12px 0;
        font-size: 12px;
        p{    
            margin-bottom: 10px;
        }
    }
    .bottom{
        width: 100%;
        padding: 10px 16px;
        height: 172px;
        box-sizing: border-box;
        background: white;
        font-size: 12px;
        #text{
            width: 100%;
            height: 123px;
            margin-top: 12px;
            font-size: 12px;
        }
    }

    button{
        width: 316px;
        height: 30px;
        position: relative;
        left: calc(50% - 158px);
        top: 16px;
        font-size: 11px;
        background: rgba(144, 147, 153, 1);
        border: none;
    }
</style>